import requests
from config import RunConfig

def 中间成果导出(para):
    response = requests.get(
        url=RunConfig.url + "middle/achievement/export?detailId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 中间成果分页废弃(para):
    response = requests.post(
        url=RunConfig.url + "/middle/achievement/page?page=&perPage=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 中间成果编辑(para):
    response = requests.post(
        url=RunConfig.url + "/middle/achievement/detail/edit",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 分页查询中间成果(para):
    response = requests.post(
        url=RunConfig.url + "/middle/achieve/page?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response
